import request, { post } from '@/utils/request';
import { ResponseBodyType } from '@/api/typing';

export interface ListParams {
  callTimeStart: string;
  callTimeEnd: string;
  xqdwCodes: string;
  classifyCodes: string;
  callSummaryCodes: string;
  dealSummaryCodes: string;
  securityType: string;
  classifyType: string;
  showType: string;
  page: number;
  size: number;
  inputParams: string;
  searchType: string;
  subdivisionFlag: string;
  trafficFlag: string;
  otherFlag: string;
}

export interface ListConcernParams {
  securityNo: any;
  securityName: any;
  remark: string;
  concernStatus: string;
}

export interface UpdateSecurityName {
  securityNo: string;
  securityName: string;
}

//环形折线列表
export async function getQuerySecurityInfo(params: ListParams) {
  return post('/security/info/querySecurityInfo', params);
}

//是否关注
export async function getOperate(params: ListConcernParams) {
  return post('/security/concern/operate', params);
}

//编辑名称
export async function getUpdateSecurityName(params: UpdateSecurityName) {
  return post('/security/concern/updateSecurityName', params);
}

//报警时间
export async function getQueryTime(params: { module: string }) {
  return post('/server/queryTime', params);
}
